package org.tln.db137.service;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.tln.db137.mapper.RoleMapper;
import org.tln.db137.entity.Role;
@Service
public class RoleService extends ServiceImpl<RoleMapper, Role> {

    public List<Role> selectRoleByuserId(int userId) {
        List<Role> roleList=this.baseMapper.selectRoleByuserId(userId);
        return roleList;
    }
}
